﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="add-trailComments.aspx.cs" Inherits="UI_add_trailComments" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="95%" border="0" cellpadding="10px"><tr><td align="left">
    <asp:HyperLink ID="lblTrail" runat="server" Font-Size="16px"  CssClass="links" ></asp:HyperLink></td></tr></table>
<table border="0">
    <tr>
    <td align="left">
        <table border="0" cellpadding="5" cellspacing="5" style="border:solid 5px #ababab;background-color:#ababab;color:White;font-size:12px;font-weight:bold;">
            <tr>
                <td>Add Comment</td>
            </tr>
        </table>
    </td>
    </tr>
    <tr>
        <td>
           <table border="0" cellpadding="5" cellspacing="5" style="border:solid 8px #ababab;">
                <tr>    
                    <td valign="middle" class="labelstyle" align="left" >Comments</td>
                    <td>
                        <asp:TextBox ID="txtComments" runat="server" TextMode="MultiLine" Columns="30" Rows="5"></asp:TextBox> 
                        <asp:RequiredFieldValidator ID="rfvUsername" runat="server" ValidationGroup="FormComments" Font-Size="12px" 
                            ControlToValidate="txtComments" Text="Enter comments"></asp:RequiredFieldValidator>
                    </td>
                </tr>

                 <tr>    
                    <td style="vertical-align:middle;" class="labelstyle">E-mail</td>
                    <td align="left" ><asp:TextBox ID="txtEmail" runat="server" ValidationGroup="FormComments" ></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" Font-Size="12px" 
                            ControlToValidate="txtEmail" ErrorMessage="*" Text="Invalid E-mail" ValidationGroup="FormComments" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    
                    </td>
                    </tr>
                                 <tr>    
                        <td></td>
                        <td valign="middle" align="left" >
                            <asp:TextBox ID="txtCaptcha" runat="server" ></asp:TextBox>
                            <asp:Image ID="imgCaptcha" runat="server" />
                        </td>
                    </tr>
                    <tr>    
                        <td></td>
                        <td align="left" >
                            <asp:Button ID="btnSubmit" runat="server" Text ="Submit" OnClick="btnSubmit_click" ValidationGroup="FormComments" />
                        </td>
                    </tr>
                    <tr>    
                        <td colspan="2">
                            <asp:Label ID="lblMsg" runat="server" Font-Size="12px" ForeColor="Red" ></asp:Label>
                        </td>
                        
                    </tr>
                </table>
        </td>
    </tr>
</table>



</asp:Content>

